/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo06_值传递和引用传递小练习_01 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;

        test(a,b);

        System.out.println("a的值为: "+a);         // 10
        System.out.println("b的值为: "+b);         // 20
    }


    public static void test(int a,int b){
        int temp;
        temp = a;
        a = b;
        b =temp;
    }
}
